<template>
  <div id="windowTopMenuManage">
<!--    <div class="top_menu_tab">文件</div>-->
<!--    <div class="top_menu_tab">编辑</div>-->
<!--    <div class="top_menu_tab">视图</div>-->
<!--    <div class="top_menu_tab">导航</div>-->
<!--    <div class="top_menu_tab">代码</div>-->
<!--    <div class="top_menu_tab">重构</div>-->
<!--    <div class="top_menu_tab">运行</div>-->
<!--    <div class="top_menu_tab">工具</div>-->
<!--    <div class="top_menu_tab">Git</div>-->
<!--    <div class="top_menu_tab">窗口</div>-->
    <div class="top_menu_tab" @click="openEasyWork">快捷操作</div>
    <div class="top_menu_tab" @click="openControlPage">控制页面</div>
    <div class="top_menu_tab" @click="openCompatibilityReportsPage">兼容性报告</div>
    <div class="top_menu_tab" @click="openIssueParsePage">Issue分析</div>
    <div class="top_menu_tab" @click="openKojiRpmParsePage">软件包分析</div>
    <div class="top_menu_tab" @click="openSinglePackageSourceParsePage">单包源分析</div>
    <div class="top_menu_tab" @click="openSettingPage">设置</div>
  </div>
</template>

<script>
// import axios from 'axios'
// import {ElNotification} from 'element-plus'

export default {
  name: "windowTopMenuManage",
  props: {
    sessionToken: String,
  },
  components: {},
  data() {
    return {
      activeMenuIndex: '',
    }
  },
  methods: {
    openControlPage() {
      this.$store.state.obj_windowEditorManage.addTab_control_page_out()
    },
    openEasyWork() {
      this.$store.state.obj_windowEditorManage.addTab_easy_work_page_out()
    },
    openCompatibilityReportsPage() {
      this.$store.state.obj_windowEditorManage.addTab_compatibility_reports_page_out()
    },
    openIssueParsePage() {
      this.$store.state.obj_windowEditorManage.addTab_issue_parse_page_out()
    },
    openSettingPage() {
      this.$store.state.obj_windowEditorManage.addTab_setting_page_out()
    },
    openKojiRpmParsePage() {
      this.$store.state.obj_windowEditorManage.addTab_koji_rpm_parse_page_out("")
    },
    openSinglePackageSourceParsePage() {
      this.$store.state.obj_windowEditorManage.addTab_single_package_source_parse_page_out("")
    },
  },
  mounted() {
  },
}
</script>

<style scoped>
#windowTopMenuManage {
  user-select: none;
  height: 100%;
  background-color: #c5c5c5;
  display: flex;
}

.top_menu_tab {
  min-width: 20px;
  line-height: 30px;
  cursor: pointer;
  padding-left: 8px;
  padding-right: 8px;
  height: 100%;
  transition: 0.5s;
}

.top_menu_tab:hover {
  background-color: #9a9b9d;
}
</style>